#include<iostream>
#include<cmath>
#include<string>
#include<algorithm>
using namespace std;
const int N = 1e4 + 10;
int n;
int main()
{
	cin >> n;
	int cnt = 0;
	int a, b, c;
	int ma = -1e9;
	for (int i = 0; i <= n / 28; i++) {
		for (int j = 0; j <= n / 25; j++) {
			for (int k = 0; k <= n / 20; k++) {
				int t = i * 28 + j * 25 + k * 20;
				if (t <= n) {
					if (ma < i * 70 + j * 50 + k * 30) {
						ma = i * 70 + j * 50 + k * 30;
						a = i;
						b = j;
						c = k;
					}
				}
			}
		}
	}
	cout << "85%:" << a << endl;
	cout << "75%:" << b << endl;
	cout << "65%:" << c << endl;
	return 0;
}